"""
join函数
"""

# list1 = ['a','b','c']
#
# s = '聂茹凤'.join(list1)
# print(s)

params = ['name=%s', 'age=%s','gender=%s']

# sql = 'update student set ' + ','.join(params) +' where id= %s'

sql = 'update student set '+ ','.join(params)+' where id = %s'
print(sql)